package com;

import com.demo.controller.StudentController;
import com.demo.controller.UserController;
import com.demo.model.Student;
import com.demo.service.StudentService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author :蕉绿
 * @Date : 2023/2/7 14:16
 * @Version : V1.0
 * @Description :
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
//        StudentController studentController = context.getBean("studentController",StudentController.class);
//        studentController.getStudent();
        UserController controller = context.getBean("userController",UserController.class);
        controller.getUser();

    }
}
